<template>
  <div class="home-container">
    <div class="glass-card">
      <h1 class="title">AI图文管理助手</h1>
      <p class="subtitle">智能素材管理，一站式图文创作解决方案</p>
      
      <div class="feature-grid">
        <div class="feature-card" @click="$router.push('/upload')">
          <el-icon size="48"><Upload /></el-icon>
          <h3>图片上传</h3>
          <p>批量上传图片，自动识别标签</p>
        </div>
        
        <div class="feature-card" @click="$router.push('/library')">
          <el-icon size="48"><Picture /></el-icon>
          <h3>素材库</h3>
          <p>智能搜索，标签筛选</p>
        </div>
        
        <div class="feature-card" @click="$router.push('/generate')">
          <el-icon size="48"><Edit /></el-icon>
          <h3>文案生成</h3>
          <p>AI智能生成多风格文案</p>
        </div>
        
        <div class="feature-card" @click="$router.push('/expand')">
          <el-icon size="48"><MagicStick /></el-icon>
          <h3>图片扩展</h3>
          <p>生成相似风格图片</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { Upload, Picture, Edit, MagicStick } from '@element-plus/icons-vue'
</script>

<style scoped>
.home-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 100%;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
  margin: 15px 0 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.4;
}
</style>